package com.ruoyi.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网站内容对象 cms_news
 * 
 * @author ruoyi
 * @date 2024-02-01
 */
public class CmsNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 所属栏目 */
    @Excel(name = "所属栏目")
    private Long cataId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 摘要 */
    @Excel(name = "摘要")
    private String description;

    /** 封面 */
    @Excel(name = "封面")
    private String thumb;

    /** 信息内容 */
    @Excel(name = "信息内容")
    private String content;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    private String recommend;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private String toped;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long viewCount;

    /** 关键字 */
    @Excel(name = "关键字")
    private String keywords;

    /** 链接  */
    @Excel(name = "链接 ")
    private String link;

    /** 附件 */
    @Excel(name = "附件")
    private String files;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCataId(Long cataId) 
    {
        this.cataId = cataId;
    }

    public Long getCataId() 
    {
        return cataId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setThumb(String thumb) 
    {
        this.thumb = thumb;
    }

    public String getThumb() 
    {
        return thumb;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRecommend(String recommend) 
    {
        this.recommend = recommend;
    }

    public String getRecommend() 
    {
        return recommend;
    }
    public void setToped(String toped) 
    {
        this.toped = toped;
    }

    public String getToped() 
    {
        return toped;
    }
    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setLink(String link) 
    {
        this.link = link;
    }

    public String getLink() 
    {
        return link;
    }
    public void setFiles(String files) 
    {
        this.files = files;
    }

    public String getFiles() 
    {
        return files;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cataId", getCataId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("thumb", getThumb())
            .append("content", getContent())
            .append("status", getStatus())
            .append("recommend", getRecommend())
            .append("toped", getToped())
            .append("viewCount", getViewCount())
            .append("keywords", getKeywords())
            .append("link", getLink())
            .append("files", getFiles())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
